//
//  ViewController.m
//  Runtime(字典转模型的实现)
//
//  Created by 刘怀轩 on 2017/8/28.
//  Copyright © 2017年 刘怀轩. All rights reserved.
//

#import "ViewController.h"
#import "StatusItem.h"

#import "CreateCode.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    // 获取文件路径
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"status.plist" ofType:nil];
    // 文件全路径
    NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:filePath];
    
    NSArray *array = dict[@"statuses"];
    
    [CreateCode createPropertyCode:array];
}


@end
